#!/bin/bash


echo "hello"

#output program name
echo $?
echo $0

#output first parameter
echo $1
echo $2

HADOOP_HOME=/home/stanley/hadoop-0.20.2/

echo ${HADOOP_HOME}

#/usr/lib/jvm/java-6-sun-1.6.0.22/bin/java -Dfile.encoding=UTF-8 -classpath /home/stanley/Documents/workspace/firstmr/bin:${HADOOP_HOME}lib/junit-3.8.1.jar:${HADOOP_HOME}lib/commons-cli-1.2.jar:${HADOOP_HOME}lib/jetty-util-6.1.14.jar:${HADOOP_HOME}lib/kfs-0.2.2.jar:${HADOOP_HOME}lib/servlet-api-2.5-6.1.14.jar:${HADOOP_HOME}lib/commons-net-1.4.1.jar:${HADOOP_HOME}lib/mockito-all-1.8.0.jar:${HADOOP_HOME}lib/commons-logging-api-1.0.4.jar:${HADOOP_HOME}lib/commons-el-1.0.jar:${HADOOP_HOME}lib/jetty-6.1.14.jar:${HADOOP_HOME}lib/xmlenc-0.52.jar:${HADOOP_HOME}lib/commons-httpclient-3.0.1.jar:${HADOOP_HOME}lib/oro-2.0.8.jar:${HADOOP_HOME}lib/commons-logging-1.0.4.jar:${HADOOP_HOME}lib/slf4j-log4j12-1.4.3.jar:${HADOOP_HOME}lib/commons-codec-1.3.jar:${HADOOP_HOME}lib/jasper-runtime-5.5.12.jar:${HADOOP_HOME}lib/slf4j-api-1.4.3.jar:${HADOOP_HOME}lib/jets3t-0.6.1.jar:${HADOOP_HOME}lib/hsqldb-1.8.0.10.jar:${HADOOP_HOME}lib/core-3.1.1.jar:${HADOOP_HOME}lib/jasper-compiler-5.5.12.jar:${HADOOP_HOME}lib/log4j-1.2.15.jar:${HADOOP_HOME}hadoop-0.20.2-ant.jar:${HADOOP_HOME}hadoop-0.20.2-tools.jar:${HADOOP_HOME}hadoop-0.20.2-core.jar $1 $2



#/usr/lib/jvm/java-6-sun-1.6.0.22/bin/java -Dfile.encoding=UTF-8 -classpath /home/stanley/Documents/workspace/.metadata/.plugins/org.apache.hadoop.eclipse/hadoop-conf-376794403700113452:/home/stanley/Documents/workspace/firstmr/bin:${HADOOP_HOME}lib/junit-3.8.1.jar:${HADOOP_HOME}lib/commons-cli-1.2.jar:${HADOOP_HOME}lib/jetty-util-6.1.14.jar:${HADOOP_HOME}lib/kfs-0.2.2.jar:${HADOOP_HOME}lib/servlet-api-2.5-6.1.14.jar:${HADOOP_HOME}lib/commons-net-1.4.1.jar:${HADOOP_HOME}lib/mockito-all-1.8.0.jar:${HADOOP_HOME}lib/commons-logging-api-1.0.4.jar:${HADOOP_HOME}lib/commons-el-1.0.jar:${HADOOP_HOME}lib/jetty-6.1.14.jar:${HADOOP_HOME}lib/xmlenc-0.52.jar:${HADOOP_HOME}lib/commons-httpclient-3.0.1.jar:${HADOOP_HOME}lib/oro-2.0.8.jar:${HADOOP_HOME}lib/commons-logging-1.0.4.jar:${HADOOP_HOME}lib/slf4j-log4j12-1.4.3.jar:${HADOOP_HOME}lib/commons-codec-1.3.jar:${HADOOP_HOME}lib/jasper-runtime-5.5.12.jar:${HADOOP_HOME}lib/slf4j-api-1.4.3.jar:${HADOOP_HOME}lib/jets3t-0.6.1.jar:${HADOOP_HOME}lib/hsqldb-1.8.0.10.jar:${HADOOP_HOME}lib/core-3.1.1.jar:${HADOOP_HOME}lib/jasper-compiler-5.5.12.jar:${HADOOP_HOME}lib/log4j-1.2.15.jar:${HADOOP_HOME}hadoop-0.20.2-ant.jar:${HADOOP_HOME}hadoop-0.20.2-tools.jar:${HADOOP_HOME}hadoop-0.20.2-core.jar $1 $2



/usr/lib/jvm/java-6-sun-1.6.0.22/bin/java -Dfile.encoding=UTF-8 -classpath /home/stanley/Documents/workspace/.metadata/.plugins/org.apache.hadoop.eclipse/hadoop-conf-6376345303335169284:/home/stanley/Documents/workspace/firstmr/bin:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/junit-3.8.1.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/commons-cli-1.2.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/jetty-util-6.1.14.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/kfs-0.2.2.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/servlet-api-2.5-6.1.14.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/commons-net-1.4.1.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/mockito-all-1.8.0.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/commons-logging-api-1.0.4.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/commons-el-1.0.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/jetty-6.1.14.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/xmlenc-0.52.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/commons-httpclient-3.0.1.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/oro-2.0.8.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/commons-logging-1.0.4.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/slf4j-log4j12-1.4.3.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/commons-codec-1.3.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/jasper-runtime-5.5.12.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/slf4j-api-1.4.3.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/jets3t-0.6.1.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/hsqldb-1.8.0.10.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/core-3.1.1.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/jasper-compiler-5.5.12.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/lib/log4j-1.2.15.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/hadoop-0.20.2-ant.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/hadoop-0.20.2-tools.jar:/home/stanley/Documents/workspace/hadoop/hadoop-0.20.2/hadoop-0.20.2-core.jar $1 $2


echo "Goodbye"
